﻿using System;
using System.Web.UI;

namespace MyWeb.TrangChinh.UC
{
    public partial class ucHeader : UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            multiview.ActiveViewIndex = Session["username"] != null ? 1 : 0;
        }

        protected void lbtLogout_Click(object sender, EventArgs e)
        {
            Session.Clear();
            multiview.ActiveViewIndex = 0;
            Response.Redirect("~/Default.aspx");
        }
    }
}